Vscode Bookmarks




It helps you to navigate in your code, moving between important positions easily and quickly. No more need to search for code. It also supports a set of selection commands, which allows you to select bookmarked lines and regions between bookmarked lines. It's really useful for log file analysis.

Since version 9 you can also define Labels for you bookmarks!

Here are some of the features that Bookmarks provides:

Available commands

Manage your bookmarks

Toggle

You can easily Mark/Unmark bookmarks on any position.

Toggle

Toggle Labeled

You can even mark labeled bookmarks on any position.

Toggle

Navigation

Jump to Next / Previous

Quicky move between bookmarks backward and forward, even if located outside the active file.

List / List from All Files

List all bookmarks from the current file/project and easily navigate to any of them. It shows a line preview and temporarily scroll to its position.

List

Selection

You can use Bookmarks to easily select lines or text blocks. Simply toggle bookmarks in any position of interest and use some of the Selection commands available.

Select Lines

Select all bookmarked lines. Specially useful while working with log files.

Select Lines

Expand Selection to the Next/Previous Bookmark or Shrink the Selection

Manipulate the selection of lines between bookmarks, up and down.

Expand/Shrink

Available Settings

    "bookmarks.navigateThroughAllFiles": true
    "bookmarks.wrapNavigation": true
    "bookmarks.saveBookmarksInProject": true
    "bookmarks.gutterIconPath": "c:\\temp\\othericon.png"
    "bookmarks.backgroundLineColor"
    "bookmarks.useWorkaroundForFormatters": true

This workaround should be temporary, until a proper research and suggested APIs are available

Activity Bar

The Bookmarks are now presented in its own Activity Bar, giving you more free space in your Explorer bar. You will have a few extra commands available:

Treeview

Project and Session Based

The bookmarks are saved per session for the project that you are using. You don't have to worry about closing files in Working Files. When you reopen the file, the bookmarks are restored.

It also works even if you only preview a file (simple click in TreeView). You can put bookmarks in any file and when you preview it again, the bookmarks will be there.